package test;

/**
 * Created by admin on 2018/12/5.
 */
public enum ProductTicketType {
    singlePass(1, "单日通票"),
    passYearCard(2, "通票年卡"),
    passHalfYearCard(3, "通票半年卡"),
    singleYearProject(4, "单项目年卡"),
    singleProjectTicket(5, "单项目票"),
    mealTicket(6, "套餐票");

    private Integer value;
    private String name;

    private ProductTicketType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public static boolean YearContains(int type){
      return 1<type && type<5;
    }

    public String getName() {
        return this.name;
    }


    public int getValue() {
        return this.value;
    }
}
